package com.cskaoyan.service;

import com.cskaoyan.bean.*;
import com.cskaoyan.bean.admin.vo.UpdateGoodsVo;
import com.cskaoyan.bean.admin.vo.CatAndBrandVo;
import com.cskaoyan.bean.admin.vo.CreateGoodsVo;
import com.cskaoyan.bean.admin.vo.GoodsDetailVo;
import com.cskaoyan.bean.wx.vo.SearchGoodsPageDataVo;
import com.cskaoyan.bean.wx.vo.WxCategoryListVo;
import com.cskaoyan.bean.wx.vo.WxDetailVo;
import com.cskaoyan.bean.wx.vo.WxHomeIndexVo;

import javax.servlet.http.HttpServletRequest;


public interface GoodsService {
    BasePageData selectGoodsCount(Integer goodsId, String goodsSn, String name, BaseParam param);

    CatAndBrandVo selectCategory();

    void addGoods(CreateGoodsVo createGoodsVo);

    void updateGoods(HttpServletRequest req, UpdateGoodsVo goods);

    GoodsDetailVo selectDetail(Integer id);

    void deleteGoods(Goods goods);


    WxHomeIndexVo selectIndex(HttpServletRequest req);

    BasePageData selectGoodsCategory(String keyword, Boolean isNew, Boolean isHot, Integer page, Integer limit, String sort, String order, Integer categoryId);

    WxCategoryListVo selectCategoryList(Integer id);

    WxDetailVo selectWxDetail(HttpServletRequest req, Integer id);

    BasePageData selectWxRelated(Integer id);

//    SearchGoodsPageDataVo searchGoods(String keyword, Integer categoryId, BaseParam param);
}
